package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    void addUserAccount(String value);
    //获取账号可用金额
    BigDecimal getAvailableAmount();

    AccountLockResultVo checkAndLock(AccountLockVo accountLockVo);

    void minusAccount(String value);

    void unLockAccount(String value);
}
